package org.jeecg.modules.business.enums;

import lombok.Getter;

@Getter
public enum FeeType {
    CONSUME(1,"消费"),
    COLLECTION(2,"收款");

    Integer key;

    String title;

    FeeType(Integer key, String title){
        this.key = key;
        this.title = title;
    }
    public Integer getKey() {
        return key;
    }

    public String getTitle() {
        return title;
    }

    public static FeeType val(Integer key){
        for(FeeType team: values()){
            if(team.key .equals(key)){
                return team;
            }
        }
        return null;
    }
}
